import request from '@/utils/request'

// 防患治理
export function getQualityRiskHandleList(data) {
  return request({
    url: '/api/qualityManage/qualityRiskHandle/getQualityRiskHandleList',
    method: 'post',
    data
  })
}

export function addQualityRiskHandle(data) {
  return request({
    url: '/api/qualityManage/qualityRiskHandle/addQualityRiskHandle',
    method: 'post',
    data
  })
}

export function updateQualityRiskHandle(data) {
  return request({
    url: '/api/qualityManage/qualityRiskHandle/updateQualityRiskHandle',
    method: 'post',
    data
  })
}

export function deleteQualityRiskHandle(params) {
  return request({
    url: '/api/qualityManage/qualityRiskHandle/deleteQualityRiskHandle',
    method: 'post',
    params
  })
}

export function getQualityRiskHandleDetail(params) {
  return request({
    url: '/api/qualityManage/qualityRiskHandle/getQualityRiskHandleDetail',
    method: 'post',
    params
  })
}

// 工程评比
export function getEngineeringAppraisalList(data) {
  return request({
    url: '/api/qualityManage/engineeringAppraisal/getEngineeringAppraisalList',
    method: 'post',
    data
  })
}

export function addEngineeringAppraisal(data) {
  return request({
    url: '/api/qualityManage/engineeringAppraisal/addEngineeringAppraisal',
    method: 'post',
    data
  })
}

export function updateEngineeringAppraisal(data) {
  return request({
    url: '/api/qualityManage/engineeringAppraisal/updateEngineeringAppraisal',
    method: 'post',
    data
  })
}

export function deleteEngineeringAppraisal(params) {
  return request({
    url: '/api/qualityManage/engineeringAppraisal/deleteEngineeringAppraisal',
    method: 'post',
    params
  })
}

export function getEngineeringAppraisalDetail(params) {
  return request({
    url: '/api/qualityManage/engineeringAppraisal/getEngineeringAppraisalDetail',
    method: 'post',
    params
  })
}

// 质量奖惩
export function getQualityRewardsPunishmentList(data) {
  return request({
    url: '/api/qualityManage/qualityRewardsPunishment/getQualityRewardsPunishmentList',
    method: 'post',
    data
  })
}

export function addQualityRewardsPunishment(data) {
  return request({
    url: '/api/qualityManage/qualityRewardsPunishment/addQualityRewardsPunishment',
    method: 'post',
    data
  })
}

export function updateQualityRewardsPunishment(data) {
  return request({
    url: '/api/qualityManage/qualityRewardsPunishment/updateQualityRewardsPunishment',
    method: 'post',
    data
  })
}

export function deleteQualityRewardsPunishment(params) {
  return request({
    url: '/api/qualityManage/qualityRewardsPunishment/deleteQualityRewardsPunishment',
    method: 'post',
    params
  })
}

export function getQualityRewardsPunishmentDetail(params) {
  return request({
    url: '/api/qualityManage/qualityRewardsPunishment/getQualityRewardsPunishmentDetail',
    method: 'post',
    params
  })
}

// 质量培训
export function getQualityTrainList(data) {
  return request({
    url: '/api/qualityManage/qualityTrain/getQualityTrainList',
    method: 'post',
    data
  })
}

export function addQualityTrain(data) {
  return request({
    url: '/api/qualityManage/qualityTrain/addQualityTrain',
    method: 'post',
    data
  })
}

export function updateQualityTrain(data) {
  return request({
    url: '/api/qualityManage/qualityTrain/updateQualityTrain',
    method: 'post',
    data
  })
}

export function deleteQualityTrain(params) {
  return request({
    url: '/api/qualityManage/qualityTrain/deleteQualityTrain',
    method: 'post',
    params
  })
}

export function getQualityTrainDetail(params) {
  return request({
    url: '/api/qualityManage/qualityTrain/getQualityTrainDetail',
    method: 'post',
    params
  })
}
export function getCheckAppraisalInfoList(data) {
  return request({
    url: '/api/qualityManage/checkAppraisalInfo/getCheckAppraisalInfoList',
    method: 'post',
    data
  })
}
export function addCheckAppraisalInfo(data) {
  return request({
    url: '/api/qualityManage/checkAppraisalInfo/addCheckAppraisalInfo',
    method: 'post',
    data
  })
}
export function updateCheckAppraisalInfo(data) {
  return request({
    url: '/api/qualityManage/checkAppraisalInfo/updateCheckAppraisalInfo',
    method: 'post',
    data
  })
}
export function getCheckAppraisalInfoDetail(params) {
  return request({
    url: '/api/qualityManage/checkAppraisalInfo/getCheckAppraisalInfoDetail',
    method: 'post',
    params
  })
}
export function deleteCheckAppraisalInfo(params) {
  return request({
    url: '/api/qualityManage/checkAppraisalInfo/deleteCheckAppraisalInfo',
    method: 'post',
    params
  })
}
